/**   
* @Title: FinalConfigParams.java 
* @author 7828wc   
* @date 2016年1月21日 下午4:40:30 
*/
package com.shanghaionstar.utils;

import android.content.Context;

/**
 * @author 7828wc
 *
 */
public final class FinalConfigParams {
	public static final String UPDATE_BANNER = "update_banner";
	public static final String ISLOADDATAS = "isLoadDatas";
	public static final String TRUE = "true";
	public static final String FALSE = "false";

	public final static int SUCCESS = 0;
	public final static int ERROR = 1;

	public final static String VERSION ="version";

	public static final String ISPIN = "isPin";
	public static final String PINCODE = "pinCode";
	
	
	public static final String UPGRADE_OWNER = "UPGRADE_OWNER";
	public static final String CARDNUMBER = "CARDNUMBER";
	public static final String ISHOUROFFET = "isHourOffet";
	public static final String UPDATE_USER_EMAIL = "UPDATE_USER_EMAIL";
	public static final String UPDATE_USER_PHONE = "UPDATE_USER_PHONE";
	public static final String LOGIN_IDPID = "LOGIN_IDPID";
								
	public static final String OWNER_JUMP = "Owner_jump";
	public static final String FRAGMENTAG = "fragmentTag";
	public static final String BROADCASTCOUNT = "";
	public static final String MOREFRAGMENTAG = "";
	public static final String PREFER_DEALER = "";
	public static final String Others_Activity = "";
	public static final String HOME_REPORT = "";
	public static final String IsFinishLoadEntitleService = "";
	public static final String OVD_auto_refresh = "";
	
	
	public static final String ISLOADING="isLoading";
	public static final String GEOFENCENAME = "GEOFENCENAME";
	public static final String ISTRAFFIC = "isTraffic";
	public static final String IS_WIFI ="IS_WIFI";
	public static final String HOME_FAVORITE = "HOME_FAVORITE";
	public static final String ADD_CURRENT_LOCATIONS_TO_DESTINATIONLIST= "addCurrentLocationsToDestinationList";
	public static final String HOME_VEHICLE_LOCATION = "HOME_VEHICLE_LOCATION";
	public static final String LOG_OUT= "LOG_OUT";
//	public static final String IS_FINISH_LOAD_ENTITLE_SERVICE="isFinishLoadEntitleService";
	public static final String POILENGTH="poiLength";
	public static final String ROUTE_SEARCHE_STATUS= "routeSearchStatus";
	public static final String SEARCHEBOUND="searchBound";
	public static final String CATEGORY="category";
	public static final String SELECT_POI_TYPE="selectPoiType";
	public static final String ADDRESS_DESCRIPTION ="addressDescription";
	public static final String IS_VEHICLE_LOCATIONING= "isVehicleLocationing";
	public static final String OTHERS_ACTIVITY ="Others_Activity";
	public static final String SHARE_DESTINATION = "SHARE_DESTINATION";
	public static final String LOGIN_ROLE ="LOGIN_ROLE";
	public static final String POPUP_POITITLE="popupPoiTitle";
	public static final String AUTO_SENT_TO_TBT = "AUTO_SENT_TO_TBT";
	
	public static final String LATITUDE ="latitude";
	public static final String LONGITUEDE ="longituede";
	
	public static final String AUTHSERVERURL ="authServerURL";
	public static final String DEV_AUTHSERVERURL = "devAuthServerURL";
	
	public static final String ENVIRONMENT ="environment";
	public static final String URL ="";
	public static final String IS_DEVELOP_MODE ="isDevelopMode";

	public static final String SETTING_UNREAD = "settingUnread";
	public static final String BROADCAST_UNREAD = "broadcastUnread";
	public static final String BROADCAST_LAST_ID = "broadcastLastID";
	public static final String CHARGE_MODE_UNREAD = "chargeModeUnread";
	public static final String PREFIX_H5_URL = "PREFIX_H5_URL";
	//高德
	//车牌
	public static final String LICENSE_PLATE_NUM = "licenseplatenum";

	//车牌+vin
	public static String LICENSE_PLATE_NUM(Context context) {
		return LICENSE_PLATE_NUM + ApplicationUtil.getInstance().getVin();
	}

	//发动机号
	public static final String ENGINE_NUM = "enginenum";

	//发动机号
	public static final String ENGINE_NUM(Context context) {
		return ENGINE_NUM + ApplicationUtil.getInstance().getVin();
	}

	//车辆类型
	public static final String VEHICLE_TYPY= "vehicletype";
	/**
	 * 程序是否需要重新做data load
	 */
	public static final String APPUPDATE ="appUpdate";
	/**
	 * 记录程序是否是第一次登陆，如果注销，再登陆则为true
	 */
	public static final String ISFIRSTLOAD ="isFirstLoad";

	/**
	 * 记录上次车辆操作类型
	 */
	public static final String LAST_COMMAND_TYPE ="last_command_type";

	/**
	 * 记录上次车辆操作时间
	 */
	public static final String LAST_COMMAND_TIME ="last_command_time";


	/**
	 * 记录上次车辆操作类型
	 */
	public static final String LAST_COMMAND_TYPE_NEW ="last_command_type_new";

	/**
	 * 记录上次车辆操作时间
	 */
	public static final String LAST_COMMAND_TIME_NEW ="last_command_time_new";


	public enum ShortCutRequestType {

		LOCK_DOOR("lock_door"),
		OVD_REPORT("ovd_report"),
		VEHICLE_LOCATION("vehicle_location"),
		MY_PACKAGE("my_package"),
		TBT("tbt"),
		ODD("odd"),
		AROUND_DEALER("around_dealer"),
		MAP_FAVORITE("favorite"),
		MAP_ROUTE_FAVORITE_START("map_route_favorite_start"),
		MAP_ROUTE_FAVORITE_END("map_route_favorite_end"),
		GEOFENCE_FAVORITE_START("geofence_favorite_start"),
		GEOFENCE_FAVORITE_END("geofence_favorite_end"),
		MORE_TRUE_STORY("more_true_story"),
		MORE_FWJS("more_fwjs"),
		MORE_UPGRADE_OWNER("more_upgrade_owner"),
		MAP_SAVE_POI("map_save_poi"),
		WIFI_GET("wifi_get");
		private final String value;
		
		ShortCutRequestType(String v) {
			value = v;
		}

		public String value() {
			return value;
		}
		public static ShortCutRequestType fromValue(String v) {
			for (ShortCutRequestType c : ShortCutRequestType.values()) {
				if (c.value.equals(v)) {
					return c;
				}
			}
			throw new IllegalArgumentException(v);
		}
	}

	/**
	 * 记录小O问答车况界面是否切换到后台
	 */
	public static final String MRO_VECHILE_ONSTOP ="mro_vechile_onstop";
}
